<ion-view view-title="订单管理" class="afall afallseller" hide-nav-bar="hideTile">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
		<ion-nav-buttons side="right">
			<button class="button button-clear" on-tap="rightSideMenu()"><img src="./img/guilin/other/search.icon@2x.png" width="20" /></button>
		</ion-nav-buttons>
	</ion-nav-bar>
	


	<!--描述：滑动块-->
	<ion-side-menus>
		<ion-side-menu-content drag-content="false" on-tap="closeRightSideMenu()">
			<div class="bar bar-subheader line-bottom padding-0">
				<div class="row top">
					<div class="col" on-tap="activeSlide('')" ng-class="input.type==''?'top-activated':''">
						全部
					</div>
					<div class="col" on-tap="activeSlide('ship')" ng-class="input.type=='ship'?'top-activated':''">
						待发货
						<!--<span class="spanTap">{{ship_count}}</span>-->
					</div>
					<div class="col" on-tap="activeSlide('shiped')" ng-class="input.type=='shiped'?'top-activated':''">
						已发货
					</div>
					<div class="col" on-tap="activeSlide('refunded')" ng-class="input.type=='refunded'?'top-activated':''">
						待售后
					</div>
					<div class="col" on-tap="activeSlide('finish')" ng-class="input.type=='finish'?'top-activated':''">
						已完成
					</div>
					<div class="col" on-tap="activeSlide('dead')" ng-class="input.type=='dead'?'top-activated':''">
						已取消
					</div>
				</div>
			</div>
			<ion-content scroll="false" class="has-header has-subheader bg">
				<ion-scroll direction="y" ng-style="myObj" id="list" on-scroll="doShowTop('all-handle')" delegate-handle="all-handle">
					<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
					<div class="noOrder" ng-if="firstHide&&datalist.order==undifened">
						<img src="./img/guilin/other/noorder@2x.png" />
						<div class="tip">没有相关订单</div>
						<div class="tryAgain">请重置条件试试！</div>
					</div>

					<div class="list" ng-repeat="data in datalist.order">
						<li class="item item-input item-borderless titleItem orderNo">
							订单号：{{data.order_id}}
						</li>
						<li class="item item-borderless item-input titleItem">
							<img src="./img/guilin/other/icon_buyer@2x.png" />
							<span class="storeTitle">{{data.member_name}}</span>
							<span class="orderStatus">{{data.status}}</span>
						</li>
						<div ng-repeat="goods in data.order_objects" on-tap="switchEvent(1,$parent.$index)">
							<li class="item item-borderless item-thumbnail-left goodsItem">
								<img src="{{goods.image||noImg}}" />
								<div class="row padding-0">
									<div class="col-67">
										<p class="goodsTitle ellipsis-2">{{goods.name}}</p>
										<p class="goodsGG ellipsis-2">{{goods.spec_info}}</p>
									</div>
									<div class="col-33 text-right">
										<p class="price" ng-if="data.order_type_id!='gift'">{{goods.price|currency:'￥'}}</p>
										<p class="orgPrice" ng-if="data.order_type_id!='gift'">{{g.product.amount|currency:'￥'}}</p>
										<p class="price" ng-show="data.order_type_id=='gift'">{{data.discount_value}}积分</p>
										<p class="price">×{{goods.quantity}}</p>
									</div>
								</div>
							</li>
							<li class="item item-borderless item-thumbnail-left goodsItem secondGoods" ng-repeat="adjunct in goods.adjunct">
								<!--配件-->
								<img src="{{adjunct.thumbnail_pic||noImg}}" ng-if="adjunct.thumbnail_pic" />
								<div class="row padding-0">
									<div class="col-67">
										<p class="goodsTitle ellipsis-2"><span class="pj">[配件]</span>{{adjunct.name}}</p>
										<p class="goodsGG">{{adjunct.spec_info}}</p>
									</div>
									<div class="col-33 text-right">
										<p class="price">{{adjunct.price|currency:'￥'}}</p>
										<p class="orgPrice">{{g.product.amount|currency:'￥'}}</p>
										<p class="price">×{{adjunct.quantity}}</p>
									</div>
								</div>
							</li>
						</div>

						<li class="item item-borderless totalItem">
							<span class="kind" ng-if="data.order_kind!='普通'">{{data.order_kind}}</span>
							<p ng-show="data.order_type_id!='gift'">共{{data.goods_count}}件商品&nbsp;&nbsp;合计:{{data.total_amount|currency:'￥'}}(含运费:{{data.cost_freight|currency:'￥'}})</p>
							<p ng-show="data.order_type_id=='gift'">合计:{{data.discount_value}}积分</p>
						</li>
						<!--按钮-->
						<li class="item buttonItem" ng-if="data.buttons.length>0">
							<div class="btn" style="border-color:{{buttons.color}};color:{{buttons.color}};" ng-repeat="buttons in data.buttons" on-tap="switchEvent(buttons.id,$parent.$index)">{{buttons.name}}</div>
						</li>
					</div>
					<ion-infinite-scroll ng-if="!isLoad && input.nPage < tPage" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
				</ion-scroll>

				<!--描述：回到顶部-->
				<div class="scroll-to-top" ng-class="showtop999" ng-click="doScrollToTop('all-handle',999)">
					<span class="icon ion-chevron-up"></span>
				</div>
			</ion-content>
		</ion-side-menu-content>

		<ion-side-menu side="right">
			<ion-content class="menu bg">
			<div class="list">
				<li class="item titleBar">
					<i class="icon ion-ios-arrow-back leftIcon" on-tap="rightSideMenu()"></i>订单搜索<span class="rightText" on-tap="doSearch()">搜索</span>
				</li>
				<li class="item item-input">
					<span class="name">订单号</span><input type="text" placeholder="请输入订单号"  ng-model="input.order_id" />
				</li>
				<li class="item item-input">
					<span class="name">商品名称</span><input type="text" placeholder="请输入商品名称" ng-model="input.goods_name" />
				</li>
				<li class="item" on-tap="openModal_time()">
					<span class="name">下单时间</span>
					<img src="./img/guilin/other/choose.icon@2x.png" class="jt" />
					<span class="tip">{{menuTime?menuTime:'请选择'}}</span>
				</li>
				<li class="item" on-tap="openModal_type()">
					<span class="name">订单分类</span>
					<img src="./img/guilin/other/choose.icon@2x.png" class="jt" />
					<span class="tip">{{menuType?menuType:'请选择'}}</span>
				</li>
			</div>

			</ion-content>
		</ion-side-menu>

	</ion-side-menus>
</ion-view>